package com.demo.gulimall.ware.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.*;
import java.io.Serializable;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

/**
 * 库存工作单
 *
 * @author Chen Yuan
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName("wms_ware_order_task_detail")
public class WareOrderTaskDetail implements Serializable {
	/** id */
	@TableId(type = IdType.ID_WORKER) // 老版本
    //@TableId(type = IdType.ASSIGN_ID) // 新版本
	@JsonSerialize(using = ToStringSerializer.class)
	@TableField(value = "`id`")
	private Long id;

	/** sku_id */
	@JsonSerialize(using = ToStringSerializer.class)
	@TableField(value = "`sku_id`")
	private Long skuId;

	/** sku_name */
	@TableField(value = "`sku_name`")
	private String skuName;

	/** 购买个数 */
	@TableField(value = "`sku_num`")
	private Integer skuNum;

	/** 工作单id */
	@JsonSerialize(using = ToStringSerializer.class)
	@TableField(value = "`task_id`")
	private Long taskId;

	/** 仓库id */
	@JsonSerialize(using = ToStringSerializer.class)
	@TableField(value = "`ware_id`")
	private Long wareId;

	/** 1-已锁定  2-已解锁  3-扣减 */
	@TableField(value = "`lock_status`")
	private Integer lockStatus;

}
